home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 80 / CD Actual 80 Julio-Agosto 2003.iso / Linux / LinuxGazette / lg / issue79 / misc / tougher / xmlrpc_exceptions.hpp.txt < prev    next >
Encoding:
Text File  |  2002-08-14  |  1.6 KB  |  76 lines

  1. //
  2. //
  3. // Copyright 2002 Rob Tougher <robt@robtougher.com>
  4. //
  5. // This file is part of xmlrpc.
  6. //
  7. // xmlrpc is free software; you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public License as published by
  9. // the Free Software Foundation; either version 2 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // xmlrpc is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with xmlrpc; if not, write to the Free Software
  19. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20. //
  21. //
  22.  
  23.  
  24. //
  25. // exceptions
  26. //
  27.  
  28. #ifndef _xmlrpc_exceptions_
  29. #define _xmlrpc_exceptions_
  30.  
  31. namespace xmlrpc
  32. {
  33.  
  34.   class exception
  35.     {
  36.     public:
  37.       exception ( const std::string s ) : m_s ( s ){};
  38.       ~exception(){};
  39.  
  40.       std::string description() const
  41.     {
  42.       return m_s;
  43.     }
  44.  
  45.     private:
  46.       std::string m_s;
  47.     };
  48.  
  49.  
  50.   class request_exception : public exception
  51.     {
  52.     public:
  53.       request_exception ( const std::string s ) : exception ( s ){};
  54.       ~request_exception(){};
  55.     };
  56.  
  57.   class reply_exception : public exception
  58.     {
  59.     public:
  60.       reply_exception ( const std::string s ) : exception ( s ){};
  61.       ~reply_exception(){};
  62.     };
  63.  
  64.   class run_exception : public exception
  65.     {
  66.     public:
  67.       run_exception ( const std::string s ) : exception ( s ){};
  68.       ~run_exception(){};
  69.     };
  70.  
  71.  
  72. };
  73.  
  74.  
  75. #endif
  76.